<!DOCTYPE html>
<html >
<head>
    <meta charset="utf-8"/>
    <title>推荐人脸管理</title>
    <meta name="keywords" content="manager,personal,manage"/>
    <meta name="description" content="人脸,人脸管理"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <link rel="stylesheet" href="./assets/css/validationEngine.jquery.css" type="text/css">
    <link rel="stylesheet" href="./assets/css/datepicker.css"/>
    <script src="./assets/js/jquery.validationEngine-zh_CN.js"></script>
    <script src="./assets/js/jquery.validationEngine.js"></script>
    <style>
        .file {
            position: relative;
            display: inline-block;
            background: #D0EEFF;
            border: 1px solid #99D3F5;
            border-radius: 4px;
            padding: 4px 12px;
            overflow: hidden;
            color: #1E88C7;
            text-decoration: none;
            text-indent: 0;
            line-height: 20px;
        }
        .file input {
            position: absolute;
            font-size: 100px;
            right: 0;
            top: 0;
            opacity: 0;
        }
        .file:hover {
            background: #AADFFD;
            border-color: #78C3F3;
            color: #004974;
            text-decoration: none;
        }
    </style>
</head>
<body>
<div class="page-content">
    <div class="row">
        <div class="col-xs-12">
            <form id="stationFormId" class="form-horizontal" role="form">
                <div class="input-group input-group-sm input-group-sm3">
                    <span class="input-group-addon group-addon group-addon1">人脸类型:</span>
                    <select id="type_search">
                        <option value="newsmaker">首页推荐</option>
                        <option value="recommandface">相册推荐</option>
                    </select>
                </div>
                <div class="input-group input-group-sm input-group-sm3" style="margin-left: 20px;">
                    <!--<button id="dataSearch" class="btn btn-primary btn-sm" title="查询">-->
                        <!--<i class="icon-search nav-search-icon"></i>-->
                    <!--</button>-->
                    <button id="dataAdd" type="button" class="btn btn-primary btn-sm"
                            data-toggle="modal" data-target="#addModal" title="添加">
                        <!--<i class="icon-plus-sign bigger-120"></i>-->
                        添加人脸
                    </button>
                    <button id="dataUpdate" type="button" class="btn btn-primary btn-sm"
                            data-toggle="modal" data-target="#updateModal" disabled title="修改">
                        <!--<i class="icon-plus-sign bigger-120"></i>-->
                        修改
                    </button>
                    <button id="dataDelete" type="button" class="btn btn-sm btn-danger"
                    data-toggle="modal" data-target="#deleteModal" disabled
                    title="删除">
                        删除
                    <!--<i class="icon-trash bigger-130"></i>-->
                    </button>
                    <button id="lostChild" type="button" class="btn btn-sm btn-primary" title="失踪儿童">
                        失踪儿童
                        <!--<i class="icon-trash bigger-130"></i>-->
                    </button>
                    <button id="reportLostChild" type="button" class="btn btn-sm btn-primary" title="上报失踪儿童">
                        上报失踪儿童
                        <!--<i class="icon-trash bigger-130"></i>-->
                    </button>
                </div>
            </form>
            <div class="row" style="margin-top: 0px;">
                <div class="col-xs-12">
                    <!-- PAGE CONTENT BEGINS -->
                    <table id="recommendFace_table" class="table"></table>
                    <!-- PAGE CONTENT ENDS -->
                </div>
                <!-- /.col -->
            </div>
        </div>
    </div>
    <!-- /.row -->
</div>
<!-- /.page-content -->
<!-- 添加的modal start-->
<div class="modal fade bs-example-modal-lg" id="addModal" tabindex="-1">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"
                        aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
                <h4 class="modal-title" id="exampleModalLabel">新增</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal" id="addForm" data-type="add">
                    <div class="form-group">
                        <label for="add_image" class="col-sm-2 control-label">添加照片</label>
                        <div class="col-sm-10" style="position:relative;">
                            <p style="margin-top: 5px;">请上传185*185px尺寸,正方形的图片</p>
                            <!-- <img onclick="getElementById('addPageAddImg').click()"
                                 style="cursor:pointer;border: 1px solid #AABBCC;" title="点击添加图片" alt="点击添加图片"
                                 src="./assets/images/addImg.jpg" /> -->
                            <a href="#">
                                <input class="putbox addFiles" type="file" name="image" id="add_image" style="height: 100%;"/>
                                <div id="bord" style="height: 185px;">
                                    <img class="imgbox" id="show_image01">
                                </div>
                            </a>
                            <input type="text" id="add_imageUrl" hidden>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="add_mark" class="col-sm-2 control-label">备注</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control validate[required]" id="add_mark"
                                   name="add_mark" value="" />
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">推荐类型</label>
                        <div class="col-sm-10">
                            <select class="form-control" name="type" id="addType">
                                <option value="newsmaker">首页推荐</option>
                                <option value="recommandface">相册推荐</option>
                            </select>

                    </div>
                    <div class="form-group" id="add_attribute">
                        <label class="col-sm-2 control-label">人脸</label>
                        <div class="col-sm-10" style="padding-left: 18px;">
                            <label class="radio-inline">
                                <input type="radio" checked="checked" name="addRadio" id="addShow" value="1"> 显示
                            </label>
                            <label class="radio-inline">
                                <input type="radio" name="addRadio" id="addHide" value="0"> 隐藏
                            </label>
                        </div>
                    </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button class="btn btn-primary" form="addForm" type="submit">保存</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</div>
<!-- 添加的modal end-->

<!-- 修改的modal start-->
<div class="modal fade bs-example-modal-lg" id="updateModal" tabindex="-1">
    <div id="modalDialog" class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"
                        aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
                <h4 class="modal-title" id="exampleModalLabel">修改</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal" id="updateForm" data-type="update">
                    <div class="form-group" style="display: none;">
                        <label for="update_id" class="col-sm-2 control-label">ID</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control validate[required]" id="update_id"
                                   name="update_id" value="" />
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="add_image" class="col-sm-2 control-label">添加照片</label>
                        <div class="col-sm-10" style="position:relative;">
                            <p style="margin-top: 5px;">请上传185*185px尺寸,正方形的图片</p>
                            <!-- <img onclick="getElementById('addPageAddImg').click()"
                                 style="cursor:pointer;border: 1px solid #AABBCC;" title="点击添加图片" alt="点击添加图片"
                                 src="./assets/images/addImg.jpg" /> -->
                            <a href="#">
                                <input class="putbox updateFiles" type="file" name="image" id="update_image" style="height: 100%;"/>
                                <div id="bord" style="height: 185px;">
                                    <img class="imgbox" id="show_image02">
                                </div>
                            </a>
                            <input type="text" id="update_imageUrl" hidden>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="update_mark" class="col-sm-2 control-label">备注</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control validate[required]" id="update_mark"
                                   name="update_mark" value="" />
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">推荐类型</label>
                        <div class="col-sm-10">
                            <select class="form-control" name="type" id="updateType">
                                <option value="newsmaker">首页推荐</option>
                                <option value="recommandface">相册推荐</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group" id="update_attribute">
                        <label class="col-sm-2 control-label">人脸</label>
                        <div class="col-sm-10" style="padding-left: 18px;">
                            <label class="radio-inline">
                                <input type="radio" name="updateRadio" id="updateShow" value="1"> 显示
                            </label>
                            <label class="radio-inline">
                                <input type="radio" name="updateRadio" id="updateHide" value="0"> 隐藏
                            </label>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button class="btn btn-primary" form="updateForm" type="submit" data-type="update">保存</button>
                <!--<button type="submit" class="btn btn-primary" name="submit" data-type="update">保存</button>-->
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</div>
<!-- 修改的modal end-->

<!-- 删除的modal start-->
<div class="modal fade" id="deleteModal" tabindex="-1">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"
                        aria-label="Close">
                    <span aria-hidden="true">×</span>
                </button>
                <h4 class="modal-title" id="myModalLabel">删除</h4>
            </div>
            <!--Form的id为myForm-->
            <form id="deleteForm" data-type="delete">
                <div class="modal-body">确认是否删除？</div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                    <!--<button type="submit" class="btn btn-primary">确认</button>-->
                    <button type="submit" class="btn btn-primary" form="deleteForm" name="submit" data-type="delete">确认</button>
                </div>
            </form>
        </div>
    </div>
</div>
<!-- 删除的modal end-->

<!-- 查看图片的modal start-->
<div class="modal fade" id="pictureModal" tabindex="-1">
    <div class="modal-dialog" role="document">
        <div class="modal-content" style="border: none;background-color: rgba(0,0,0,0);">
            <!--<div class="modal-header">-->
                <!--<button type="button" class="close" data-dismiss="modal"-->
                        <!--aria-label="Close">-->
                    <!--<span aria-hidden="true">×</span>-->
                <!--</button>-->
                <!--&lt;!&ndash;<h4 class="modal-title" id="myModalLabel">删除</h4>&ndash;&gt;-->
            <!--</div>-->
                <div class="modal-body">
                    <img src="" alt="" style="height: 500px;">
                </div>
        </div>
    </div>
</div>
<!-- 查看图片的modal end-->

<script src="./assets/js/date-time/bootstrap-datepicker.min.js"></script>
<script src="script/recommendFace.js"></script>
</body>
</html>
